<template>
	<view class="wanlpage-advert-yuanbao">
		<view class="yuanbao" @click="onLink('/pages/apps/jinyuanbao/shangpin/index')">
			<image :src="'https://d-shenhuashop.bigchun.com/h5test/yuanbao/zhuanqun.png'"> </image>
		</view>
		<view class="yuanbao2">
			<view class="yuanbao_img" @click="onLink('/pages/apps/jinyuanbao/choujiang/choujiangHistory')">
				<image :src="'https://d-shenhuashop.bigchun.com/h5test/yuanbao/duihuan.png'"> </image>
			</view>
			<view class="yuanbao_img" style="margin-top: 10rpx" @click="onLink('/pages/apps/jinyuanbao/shangjia/merchantList')">
				<image :src="'https://d-shenhuashop.bigchun.com/h5test/yuanbao/fujin.png'"> </image>
			</view>
		</view>
		<view class="yuanbao2">
			<view class="yuanbao_img" @click="onLink('/pages/apps/jinyuanbao/chongzhi/chongzhi')">
				<image :src="'https://d-shenhuashop.bigchun.com/h5test/yuanbao/chongzhi.png'"> </image>
			</view>
			<view class="yuanbao_img" style="margin-top: 10rpx" @click="onLink('/pages/apps/jinyuanbao/choujiang/choujiang')">
				<image :src="'https://d-shenhuashop.bigchun.com/h5test/yuanbao/choujiang.png'"> </image>
			</view>
		</view>
	</view>
</template>
<script>
	export default {
		name: "WanlPageYuanbao",
		props: {
			pageData: {
				type: Object,
				default: function() {
					return {
						name: '元宝组件',
						type: 'image',
						params: [],
						style: [],
						data: []
					}
				}
			}
		},
		methods:{
			async onLink(url){
				this.$wanlshop.on(url);
			}
		}
	}
</script>
<style lang="scss">
	.wanlpage-advert-yuanbao {
		display: flex;
		justify-content: space-between;
		align-items: center;
		width: 95%;
		height: 340rpx;
		margin: 20rpx;
		.yuanbao{
			width: 36%;
			height: 100%;
			image{
				width: 100% !important;
				height: 100%;
			}
		}
		.yuanbao2{
			width: 30%;
			height: 100%;
			display: flex;
			flex-direction: column;
			justify-content: center;
			align-items: center;
			.yuanbao_img{
				width: 100%;
				height: 48%;
				image{
					width: 100% !important;
					height: 100%;
				}
			}
			
		 }
		
	}
</style>
